<?php

namespace app\command;

use app\caches\AdPlanCache;
use app\caches\TestCache;
use app\model\sdk\AdPlan;
use app\model\sdk\Orders;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;


class YqYangxuguang extends Command
{
    protected static $defaultName = 'yq:yangxuguang';
    protected static $defaultDescription = '杨旭光专用测试';

    /**
     * @return void
     */
    protected function configure()
    {
        $this->addArgument('name', InputArgument::OPTIONAL, 'Name description');
    }

    /**
     * @param InputInterface $input
     * @param OutputInterface $output
     * @return int
     */
    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $this->handle();
        return self::SUCCESS;
    }

    public function handle()
    {
        $data = AdPlanCache::getInstance()->remember(100003);
        yqlog($data);
    }
}
